import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router";

const routes: RouteRecordRaw[] = [
  {
    path: "/",
    name: "Login",
    component: () => import("../components/Login.vue"),
  },
  {
    path: "/UserShow/:username/:password",
    name: "UserShow",
    component: () => import("../components/UserShow.vue"),
  },
];

const router = createRouter({
    history: createWebHistory(),
    routes
  // 路由模式
  // mode: 'history',
})
// 导出路由
export default router;
